.content {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-sans);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

.appBody {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
}


.mainContent {
  display: flex;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.terminalToggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 48px;
  background: var(--color-terminal-border);
  border: none;
  border-radius: var(--border-radius-md) 0 0 var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
  color: var(--color-text-tertiary);
}

.terminalToggle:hover {
  background: var(--color-bg-hover);
  color: var(--color-text-primary);
  width: 28px;
}

.terminalToggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-normal);
}

.terminalHidden .terminalToggle {
  background: var(--color-primary);
  color: white;
}

.terminalHidden .terminalToggle:hover {
  background: var(--color-primary-hover);
  color: white;
}

@media (max-width: 768px) {
  .terminalToggle {
    /* 移动端放在底部中间 */
    position: fixed;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    top: auto;
    width: 48px;
    height: 24px;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
    z-index: 101; /* 比terminal高一层 */
  }
  
  .terminalToggle:hover {
    width: 52px;
  }
  
  .terminalToggle svg {
    width: 12px;
    height: 12px;
    /* 在移动端将左右箭头旋转为上下箭头 */
    transform: rotate(-90deg);
  }
  
  /* 当terminal隐藏时，调整按钮位置 */
  .terminalHidden .terminalToggle {
    bottom: 20px; /* 当terminal隐藏时，按钮上移一些 */
    border-radius: var(--border-radius-md);
  }
}

@media (max-width: 480px) {
  .terminalToggle {
    width: 44px;
    height: 22px;
  }
  
  .terminalToggle:hover {
    width: 48px;
  }
  
  .terminalToggle svg {
    width: 10px;
    height: 10px;
    /* 保持旋转 */
    transform: rotate(-90deg);
  }
}

/* 移动端侧边栏切换按钮 */
.mobileSidebarToggle {
  position: fixed;
  bottom: 12px;
  left: 12px;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border: none;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1001; /* 比侧边栏高一层 */
  transition: all var(--transition-fast);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mobileSidebarToggle:hover {
  background: var(--color-primary-hover);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mobileSidebarToggle:active {
  transform: scale(0.95);
}

.mobileSidebarToggle svg {
  width: 18px;
  height: 18px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .mobileSidebarToggle {
    bottom: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
  }
  
  .mobileSidebarToggle svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 480px) {
  .mobileSidebarToggle {
    bottom: 6px;
    left: 6px;
    width: 32px;
    height: 32px;
  }
  
  .mobileSidebarToggle svg {
    width: 14px;
    height: 14px;
  }
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
  .mobileSidebarToggle {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  }
  
  .mobileSidebarToggle:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }
}
